package com.example.shopp_2301.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.base.entity.PreOrderDetail
import com.example.shopp_2301.R
import com.example.shopp_2301.utils.GlideUtils

class GerPreAdapter:BaseQuickAdapter<PreOrderDetail,BaseViewHolder>(R.layout.item_getpre) {
    override fun convert(holder: BaseViewHolder, item: PreOrderDetail) {
        GlideUtils.loadImage(context,item.image,holder.getView(R.id.pre_image))
        holder.setText(R.id.pre_name,item.productName)
        holder.setText(R.id.pre_attr,item.sku)
        holder.setText(R.id.pre_price,item.price)
        holder.setText(R.id.pre_num,"X ${item.payNum}")
    }
}